#ifndef _KEY_H_
#define _KEY_H_

#include <types.h>

enum signal_flag
{
	SIGNAL_CHECK_NORMAL,	
	SIGNAL_CHECK_PAUSE,
	SIGNAL_CHECK_RESET,
};

typedef enum
{
	IRP_NEC = 0,
	IRP_ITT,
	IRP_NRC17,
	IRP_SHARP,
	IRP_SIRC,
	IRP_RC5,
	IRP_RC6,    
}irp_protocol_t;

typedef struct
{
	const UINT32			irp_moudle;
	const irp_protocol_t	irp_protocal;
	const UINT16			irkey_addr;
}IR_Key_Map_t;


#define	UPGRADE_CHECK_PAUSE	0
#define	UPGRADE_CHECK_HOST 	0x1
#define	UPGRADE_CHECK_SLAVE	0x2


#define  PANEL_TYPE_NORMAL    0
#define  PANEL_TYPE_M51        1

UINT8 key_Init();

void key_pan_display(char *data, UINT32 len);
void key_pan_display_channel(UINT16 channel);
void key_pan_display_lock(UINT8 sw);
void key_pan_display_lock2(UINT8 flag);
void key_pan_set_power_mode(UINT8 mode);
void key_pan_set_key_table(IR_Key_Map_t* key_tab);
BOOL key_check_ddplus_stream_changed(UINT16 *p_audio_pid);

#endif//_INPUT_H_

